import http from './utils/';
const { get, post } = http
export default class User {
    /**
     * @description: 登录 测试get
     * @param {string} username 账户
     * @param {string} password 密码
     * @return {*}
     */
    static async login1(username: string, password: string) {
        return get(`login/cellphone/?phone=${username}&password=${password}`);
    }
    /**
     * @description: 登录2 测试post
     * @param {string} username
     * @param {string} password
     * @return {*}
     */
    static async login2(username: string, password: string) {
        return post(`login/cellphone/`, { username, password });
    }
}
